// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取 线索报送  - 选题计划 POST */
export async function pageCuesTopicInit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesTopicData.TopicPageInit>>('/cues/topic/page/init', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索报送  - 选题计划 POST */
export async function pageCuesTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesTopicData.TopicPage[]>>('/cues/topic/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索报送  - 选题计划 POST */
export async function saveCuesTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 删除计划  */
export async function deleteTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/delete', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 获取 指派 树形 组织  - 选题计划 获取 推送单位  POST */
export async function initSaveTopicTreeAssignOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/cues/topic/save/init/treeAssignOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 保存 获取 联动 树形 组织  - 选题计划 获取 推送单位  POST */
export async function initSaveTopicTreeLinkageOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/cues/topic/save/init/treeLinkageOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 更新 线索报送  - 选题计划 POST */
export async function updateTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/update', {
    method: 'POST',
    data: options || {},
  });
}
/** 更新 线索报送  - 选题审批 POST */
export async function editTopicManage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/manage/edit', {
    method: 'POST',
    data: options || {},
  });
}


/** 删除 线索报送  - 选题计划 POST */
export async function deleteCuesTopic(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/delete', {
    method: 'POST',
    data: options || {},
  });
}

/**获取 线索报送  - 选题计划 详情  POST */
export async function selectCuesTopicManage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesTopicData.TopicSelectManage>>(
    '/cues/topic/select/manage',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 指派 树形 组织  - 选题计划 获取 推送单位  POST */
export async function selectTopicManageTreeAssignOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/cues/topic/select/manage/treeAssignOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 获取 指派 树形 组织  - 选题计划 获取 联动单位  POST */
export async function selectTopicManageTreeLinkageOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AdminOrganizationData.Organization[]>>(
    '/cues/topic/select/manage/treeLinkageOrganization',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**获取 线索报送  - 选题计划 详情 申请记录  POST */
export async function selectCuesTopicManageTimeline(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesTopicData.TopicRecord[]>>(
    '/cues/topic/select/manage/timeline',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 更新 线索报送  - 选题审批 POST */
export async function updateTopicManage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/manage/update', {
    method: 'POST',
    data: options || {},
  });
}
/** 更新 线索报送  - 选题审批 记录状态 POST */
export async function updateTopicManageRecordState(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/manage/recordState/update', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索报送  - 选题审批 设置 POST */
export async function selectTopicManageSetting(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesTopicData.TopicManageSetting>>(
    '/cues/topic/manage/setting/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 更新 线索报送  - 选题审批 设置 POST */
export async function updateTopicManageSetting(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/manage/setting/update', {
    method: 'POST',
    data: options || {},
  });
}


/** 选题计划回执情况          组织树*/
export async function topicReceiptTree(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/topic/receipt/tree', {
    method: 'POST',
    data: options || {},
  });
}

/** 选题计划回执情况          报送详情*/
export async function topicSubmitCondition(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/submit/condition', {
    method: 'POST',
    data: options || {},
  });
}

